//
//  XJGoodsDetailViewController.h
//  XinJiangMall
//
//  Created by Tzyang on 2018/4/11.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "BaseViewController.h"

typedef NS_ENUM(NSInteger,GoodsDetailType){
    GoodsDetailTypeSecKill,     //秒杀商品
    GoodsDetailTypeRecommend,   //推荐商品
    GoodsDetailTypeNormal,      //普通商品
    GoodsDetailTypeOther        //其他商品
};

@interface XJGoodsDetailViewController : BaseViewController

@property (nonatomic,assign) GoodsDetailType type;

//+ (void)initWithController:(UIViewController *)controller
//                 goodsType:(GoodsDetailType)type
//                   goodsId:(NSString *)goodsId;


/**
 也要遵守命名规范啊, 指定初始化方法就是执行初始化方法。便利构造器方法就是遍历构造器方法按规矩来,别胡写

 @param controller <#controller description#>
 @param type <#type description#>
 @param goodsId <#goodsId description#>
 */
+ (void)goodsDetailWithController:(UIViewController *)controller
                 goodsType:(GoodsDetailType)type
                   goodsId:(NSString *)goodsId;


@end
